package com.dc.project.workflow.vo;

import com.dc.common.validated.DeleteGroup;
import com.dc.common.validated.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhuangcy
 * @date 2021/6/30
 * @description 流程模型Vo类
 */
@Data
public class ProcessModelVo implements Serializable {
    private static final long serialVersionUID = -3904326262380357685L;
    /**
     * 模型ID
     */
    @NotNull(message = "模型ID不能为空", groups = {UpdateGroup.class, DeleteGroup.class})
    private String id;
    /**
     * 流程模型名称
     */
    private String name;
    private String key;
    private String version;
    private String deploymentId;
    private Date createTime;
    private Date lastUpdateTime;

    private String processName;
    private String processDefinitionId;
    /**
     * 流程是否被挂起
     */
    private Boolean processSuspended;

    /**
     * 分类
     */
    private Integer mcId;
    private Integer categoryId;
    private String categoryName;
    /**
     * 是否为默认（1默认）
     */
    private String defValue;


}
